<?php

namespace app\modules\index\controllers;

use Yii;
use yii\web\Controller;
use common\models\Goods;

/**
 * Default controller for the `index` module
 */
class DefaultController extends Controller
{
    /**
     * Renders the index view for the module
     * @return string
     */
    public function actionIndex()
    {
        //获取首页数据
        $data = Goods::getIndexpageGoods();        
        return $this->render('index',[
            'data'=>$data,
            'backend_server'=>Yii::$app->params['backend_server']
                ]);
    }
}
